<%--
  Created by IntelliJ IDEA.
  User: zuxia
  Date: 2018/7/19
  Time: 14:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="css/amazeui.min.css">
    <link rel="stylesheet" href="css/admin.css">
</head>
<body>
<div class="admin-content-body"style="" >
    <div class="am-cf am-padding am-padding-bottom-0" >
        <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">订单管理</strong><small></small></div>
    </div>
    <hr>

    <div class="am-g" style="margin-top: 5px;">
        <div class="am-u-sm-12">
            <form class="am-form">
                <table class="am-table am-table-striped am-table-hover table-main">
                    <thead>
                    <tr>

                        <th>
                            菜品名称
                        </th>
                        <th class="table-title">
                            订单时间
                        </th>
                        <th class="table-title">
                            菜品数量
                        </th>
                        <th class="table-title">
                            备注
                        </th>
                        <th class="table-title">
                            桌号
                        </th>
                        <th class="table-title">
                            总价
                        </th>
                        <th class="table-title">
                            支付方式
                        </th>

                    </tr>
                    </thead>
                    <tbody id="tUser">

                    </tbody>
                </table>

            </form>
        </div>
    </div>
</div>

</div>
<!-- content end -->
</div>
</div>

<!--[if (gte IE 9)|!(IE)]><!-->
<script src="js/jquery-1.11.3.min.js"></script>
<!--<![endif]-->
<script type="text/javascript" src="myplugs/js/plugs.js"></script>
<script>
    $(function() {
        $("#chkAll").chkAll({
        });
        $.ajax({
            type:"get",
            url:"/isFull-admin/listOrder.action",
            data:"",
            success:function (result) {
                var listOrder=result.data;
                for (var i=0;i<listOrder.length;i++){
                    $("#tUser").append(
                        "<tr><td><a href='javascript:void(0)'>"+listOrder[i].meid+"</a>"+
                        "</td><td>"+listOrder[i].oderTime+"</td><td>"+listOrder[i].onumber+"</td><td>"+listOrder[i].onote+"</td><td>"+listOrder[i].oramadhin+"</td>"+
                        "<td>"+listOrder[i].ototal+"</td><td>"+listOrder[i].opayment+"</td><td><div class='am-btn-toolbar'>"

                    );
                }
            }
        });


    });

</script>
</body>

</html>